package ik.am.jpetstore.domain.service.byme;

import javax.inject.Inject;

import org.springframework.stereotype.Service;

import ik.am.jpetstore.domain.model.byme.Info;
import ik.am.jpetstore.domain.model.byme.TextStyle;
import ik.am.jpetstore.domain.model.byme.Weblist;
import ik.am.jpetstore.domain.repository.byme.InfoMapper;
import ik.am.jpetstore.domain.repository.byme.TextStyleMapper;
import ik.am.jpetstore.domain.repository.byme.WeblistMapper;

@Service
public class BymeAppServiceImpl implements BymeAppService {

	
	@Inject
	InfoMapper ix;
	@Inject
	WeblistMapper wp;
	@Inject
	TextStyleMapper ts;
	
	public int addInfo(Info i){
		return ix.insert(i);
	}
	
	public int addWeblist(Weblist w){
		return wp.insert(w);	
	}
	
	public int addTextStyle(TextStyle t){
		return ts.insert(t);	
	}
	
}
